package com.lei.demo.service;

import java.util.List;

import com.lei.demo.entity.User;

public interface UserService {

    User findById(int id);
    void saveUser(User user);
    void updateUser(User user);
    void deleteUser(User user);
    Boolean login(int id, String pwd);
    User findByName(String name);
    List<User> findUsers(String name);
    List<User> findAllUser();
    void deleteUser(String name);
}
